import { Component } from "react";

interface IState {
    name: string
}
// <属性,状态>
export default class App extends Component<any, IState> {

    state = {
        name: '100'
    }
    render() {
        return (
            <div>
                APP: {this.state.name}
                <button onClick={()=>{
                    this.setState({
                        name: '200'
                    })
                }}>edit</button>
            </div>
        )
    }

}